package datastore;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class LogOfTag {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
    
    @Persistent
    private String waveId;
    
    @Persistent
    private String waveletId;
    
    @Persistent
    private String blipId;
    
    @Persistent
    private String tag;
    
    @Persistent
    private int startTag;
    
    @Persistent
    private int endTag;
    
    @Persistent
    private String content;
        
    @Persistent
    private Date date;
    
	public LogOfTag(String waveId, String waveletId, String blipId,String tag, int startTag, int endTag,String content, Date date) {
    	this.waveId = waveId;
        this.waveletId = waveletId;
        this.blipId = blipId;
        this.tag = tag;
        this.startTag = startTag;
        this.endTag = endTag;
        this.date = date;
        this.content = content;
    }

	public Key getKey() {
		return key;
	}

	public String getWaveId() {
		return waveId;
	}

	public String getWaveletId() {
		return waveletId;
	}

	public String getBlipId() {
		return blipId;
	}

	public String getTag() {
		return tag;
	}

	public int getStartTag() {
		return startTag;
	}

	public int getEndTag() {
		return endTag;
	}
	
	public String getContent(){
		return content;
	}

	public Date getDate() {
		return date;
	}

    
}
